using UnityEngine;
using System.Collections;

public class DontLoadAchievement : MonoBehaviour {

	public Transform audioPrefab;
	IEnumerator Start () 
	{
		
		
		yield return new WaitForSeconds(0.1f);
		
		if(!GameObject.Find("AudioBehavior"))
		{
			Transform a = Instantiate(audioPrefab,Camera.mainCamera.transform.position,Camera.mainCamera.transform.rotation) as Transform;
			a.name = "AudioBehavior";
		}
		
		Application.LoadLevel(PlayerPrefs.GetString("LastLevelMissingAch"));
		PlayerPrefs.DeleteKey("LastLevelMissingAch");
	}

}
